//$Id$

package builders;

/**
 * @author Vincent
 */
public class HomeBase extends Tile {

	/*
	 * * this is to indicate that the tile is a homeBase of a player.
	 */
	private boolean isHomeBase = true;
	
	/**
	 * This constructor will call the constructor specified in the Tile class.
	 * 
	 * @param tileDescription	a description that informs the player that the player has landed on a homeBase
	 * @param nameOfTile		specify the name of the homeBase
	 * @param imageFile			specify the file name of the image used by the homeBase
	 */
	HomeBase(String tileDescription, String nameOfTile, String imageFile) {
		super(tileDescription, nameOfTile, imageFile);
	}

	/**
	 * @return	true as the tile is a homeBase
	 */
	public boolean getIsHomeBase() {
		return isHomeBase;
	}
	
	/**
	 * This is the method called by Logic to get the result of the event triggered when the player landed on a homeBase.
	 * The parameter, numberOfActionPointsLeft, is not used in this method as the result of the event does not depend on the number of action points left.
	 * 
	 * @param numberOfActionPointsLeft	the remaining Action Points that the player has after using the Action Points for movement
	 * @return							a TileResult which will specify the description that informs the player that the player has landed on a homeBase 
	 */
	public TileResult execute(int numberOfActionPointsLeft) {
		
		TileResult result = new TileResult(tileDescription);
		
		return result;
	}
}
